home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // Aircraft.wfm -- Aircraft data view and edit form.
- //
- // This form displays data from the Aircraft table and
- // allows for the editing of existing records. Users can
- // double-click on the image to update it.
- //
- // Dependencies: AIRCRAFT.DBF
- // FLEET.CFM
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.8 $
- //
- // Copyright (c) 1997, Borland International, Inc.
- // All rights reserved.
- //
- //---------------------------------------------------------------
- SET TALK OFF
- ** END HEADER -- do not remove this line
- //
- // Generated on 11/02/97
- //
- parameter bModal
- local f
- f = new aircraftForm()
- if (bModal)
- f.mdi = false // ensure not MDI
- f.readModal()
- else
- f.open()
- endif
-
- class aircraftForm of FLEETCFORM from "FLEET.CFM"
- with (this)
- height = 15
- left = 8.6667
- top = 0.56
- width = 53
- text = "Aircraft Information"
- mdi = false
- scrollBar = 2
- endwith
-
-
- this.DMAIRCRAFT = new DATAMODREF()
- this.DMAIRCRAFT.parent = this
- with (this.DMAIRCRAFT)
- filename = "AIRCRAFT.DMD"
- dataModClass = "aircraftDataModule"
- share = 0
- active = true
- left = 4.6667
- top = 1.6923
- endwith
-
-
- this.IMAGEIMAGE1 = new IMAGE(this)
- with (this.IMAGEIMAGE1)
- onLeftDblClick = class::IMAGEIMAGE1_ONLEFTDBLCLICK
- height = 5
- left = 2
- top = 8.5
- width = 50
- metric = 0
- dataSource = form.DMAIRCRAFT.ref.aircraft1.rowset.fields["Layout Image"]
- alignment = 3
- mousePointer = 1
- borderStyle = 7
- endwith
-
-
- this.SPINBOXAIRCRAFTID1 = new SPINBOX(this)
- with (this.SPINBOXAIRCRAFTID1)
- enabled = false
- height = 1
- left = 22
- top = 2
- width = 10
- metric = 0
- dataLink = form.DMAIRCRAFT.ref.aircraft1.rowset.fields["Aircraft ID"]
- picture = "999999"
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.ENTRYFIELDMAKE1 = new ENTRYFIELD(this)
- with (this.ENTRYFIELDMAKE1)
- height = 1
- left = 22
- top = 3
- width = 12
- metric = 0
- dataLink = form.DMAIRCRAFT.ref.aircraft1.rowset.fields["Make"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- borderStyle = 7
- endwith
-
-
- this.ENTRYFIELDAIRCRAFT1 = new ENTRYFIELD(this)
- with (this.ENTRYFIELDAIRCRAFT1)
- height = 1
- left = 22
- top = 4
- width = 15
- metric = 0
- dataLink = form.DMAIRCRAFT.ref.aircraft1.rowset.fields["Model"]
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.SPINBOXCREW1 = new SPINBOX(this)
- with (this.SPINBOXCREW1)
- height = 1
- left = 22
- top = 5
- width = 9
- metric = 0
- dataLink = form.DMAIRCRAFT.ref.aircraft1.rowset.fields["Crew"]
- picture = "999"
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.SPINBOXPASSENGER1 = new SPINBOX(this)
- with (this.SPINBOXPASSENGER1)
- height = 1
- left = 22
- top = 6
- width = 9
- metric = 0
- dataLink = form.DMAIRCRAFT.ref.aircraft1.rowset.fields["Passengers"]
- picture = "999"
- colorHighLight = ""
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.SPINBOXMANUFACTURE1 = new SPINBOX(this)
- with (this.SPINBOXMANUFACTURE1)
- height = 1
- left = 22
- top = 7
- width = 13
- metric = 0
- dataLink = form.DMAIRCRAFT.ref.aircraft1.rowset.fields["Date of Manufacture"]
- colorHighLight = ""
- rangeMax = {12/01/97}
- rangeMin = {08/23/97}
- fontName = "MS Sans Serif"
- fontSize = 8
- validRequired = true
- borderStyle = 7
- endwith
-
-
- this.TITLE1 = new TEXT(this)
- with (this.TITLE1)
- height = 1.6
- left = 2
- top = 0
- width = 30
- metric = 0
- variableHeight = true
- colorNormal = "darkblue"
- transparent = true
- fontSize = 18
- text = "Aircraft"
- endwith
-
-
- this.LABELID = new TEXT(this)
- with (this.LABELID)
- height = 1
- left = 2
- top = 2
- width = 19
- metric = 0
- colorNormal = "darkblue"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- text = "ID:"
- endwith
-
-
- this.TEXTMAKE1 = new TEXT(this)
- with (this.TEXTMAKE1)
- height = 1
- left = 2
- top = 3
- width = 12
- metric = 0
- colorNormal = "BtnText"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- text = "Make"
- endwith
-
-
- this.LABELMODEL = new TEXT(this)
- with (this.LABELMODEL)
- height = 1
- left = 2
- top = 4
- width = 19
- metric = 0
- colorNormal = "darkblue"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- text = "Model:"
- endwith
-
-
- this.LABELCREW = new TEXT(this)
- with (this.LABELCREW)
- height = 1
- left = 2
- top = 5
- width = 19
- metric = 0
- colorNormal = "darkblue"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- text = "Crew:"
- endwith
-
-
- this.TEXTPASSENGER1 = new TEXT(this)
- with (this.TEXTPASSENGER1)
- height = 1
- left = 2
- top = 6
- width = 19
- metric = 0
- colorNormal = "darkblue"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- text = "Passengers:"
- endwith
-
-
- this.LABELMANUFACTURE = new TEXT(this)
- with (this.LABELMANUFACTURE)
- height = 1
- left = 2
- top = 7
- width = 19
- metric = 0
- colorNormal = "darkblue"
- alignVertical = 1
- transparent = true
- fontName = "MS Sans Serif"
- text = "Date of Manufacture:"
- endwith
-
-
- this.rowset = this.DMAIRCRAFT.ref.aircraft1.rowset
-
- // {Linked Method} form.imageimage1.onLeftDblClick
- function IMAGEIMAGE1_onLeftDblClick(flags, col, row)
- local sImage, rAircraft
- sImage = GETFILE("*.gif","Replace Aircraft Image",true)
- rAircraft = this.form.DMAIRCRAFT.ref.aircraft1.rowset
- if ( FILE( sImage ) )
- rAircraft.fields["Layout Image"].replaceFromFile( sImage )
- rAircraft.refreshControls()
- endif
- return ( sImage )
- endclass
-